home *** CD-ROM | disk | FTP | other *** search
- function AddImportedFile(ID)
- {
- xajax_AddImportedFile(document.getElementById('FileSelector_'+ID).value, PostID);
- }
-
- function AddImportedImage()
- {
- xajax_AddImportedImage(document.getElementById('FileSelector').value, PostID);
- }
-
- function SwitchFileMode(ID)
- {
- if(document.getElementById('FileUpload_'+ID).style.display=='none')
- {
- document.getElementById('FileSelection_'+ID).style.display='none';
- document.getElementById('FileUpload_'+ID).style.display='block';
- }
- else
- {
- document.getElementById('FileUpload_'+ID).style.display='none';
- document.getElementById('FileSelection_'+ID).style.display='block';
- }
- }
-
- function ToggleSnapshots()
- {
- if(document.getElementById('Snapshots').style.display=='none')
- {
- document.getElementById('CameraButton').className="ActivatedCamera";
- }
- else
- {
- document.getElementById('CameraButton').className="Camera";
- }
- Effect.toggle('Snapshots', 'Blind', {duration:0.2});
- }
-
- function SwitchToSnapshot(ID)
- {
- document.getElementById("Snapshot_"+ID+"_Indicator").style.display='block';
-
- xajax_SwitchToSnapshot(ID);
- }
-
- function AddSnapshot(ID)
- {
- //setTimeout("Effect.Grow('Snapshot_"+ID+"', {duration:0.2});",1000);
-
- var NewWidth=document.getElementById('SnapshotsContainer').style.width.replace("px", "");
-
- document.getElementById('SnapshotsContainer').style.width=(NewWidth-0+175)+"px";
- document.getElementById('Snapshot_'+ID).style.display='block';
- new Effect.Highlight('Snapshot_'+ID, {duration:1});
-
- document.getElementById('CurrentState_Indicator').style.display='none';
- }
-
- function TrashSnapshot(ID)
- {
- Effect.Fade("Snapshot_"+ID, {duration:0.3});
- var NewWidth=document.getElementById('SnapshotsContainer').style.width.replace("px", "");
- setTimeout("document.getElementById('SnapshotsContainer').style.width='"+(NewWidth-170)+"px';", 500);
-
- xajax_TrashSnapshot(ID);
- }
-
- function Snapshot(ID)
- {
- document.getElementById(ID+"_Indicator").style.display='block';
-
- xajax_Snapshot(PostID);
- }
-
- function Snapshot_ShowTrash(ID)
- {
- document.getElementById(ID+"_Trash").style.display='block';
- }
- function Snapshot_HideTrash(ID)
- {
- document.getElementById(ID+"_Trash").style.display='none';
- }
-
- function ShowProgressBar(ID, Switch)
- {
- document.getElementById(ID+"_Progress").style.display='block';
- if(!Switch)
- setTimeout('HideProgressBar(\''+ID+'\');', 5000);
- }
-
- function HideProgressBar(ID)
- {
- if(document.getElementById(ID+"_Progress"))
- document.getElementById(ID+"_Progress").style.display='none';
- }
-
- function HideProgress()
- {
- document.getElementById('Page_Progress').style.display='none';
- document.getElementById('Bottom_Progress').style.display='none';
- }
-
- function Indicate(Text)
- {
- //if(IndicateTimer) clearTimeout(IndicateTimer);
- document.getElementById('x_Indicator').innerHTML=Text;
-
- if(document.getElementById('x_Indicator').style.display=='none')
- {
- Effect.Appear('x_Indicator', {duration:0.5});
- }
- IndicateTimer=setTimeout("Effect.Fade('x_Indicator', {duration:0.6});", 3000);
- }
-
- // Lists Related //
- function CheckThis(ID, Obj)
- {
- //ShowProgressBar('Lists',1);
- //setTimeout("HideProgressBar('Lists');", 1000);
-
- if(document.getElementById("Status_"+ID).className=='Status_Box')
- {
- document.getElementById("Status_"+ID).className = 'Status_Box SelectedStatus';
- Obj.className = 'ListItem FinishedTask';
- }
- else
- {
- document.getElementById("Status_"+ID).className = 'Status_Box';
- Obj.className = 'ListItem';
- }
- xajax_ModifyLists(ID);
-
- }
-
- function Stop_BodyEdit()
- {
- clearInterval(BodySaveInterval);
- document.getElementById('BodyPart_Box').style.display='none';
- DisplayContent('x_PageBody');
- }
-
-
- function DisplayContent(ID)
- {
- //Effect.toggle(ID, 'Appear', {duration:0.3, queue:{scope:'myscope', position:'end'}});
-
- if(document.getElementById(ID).style.display!="none")
- {
- document.getElementById(ID).style.display="none";
- ShowSideNotes();
-
- ShowClips++;
- MovePanel(ID);
-
- if(ID=="x_Notes_Patch")
- {
- RegisterDroppables('Notes');
- }
- else
- {
- RegisterDroppables('Body');
- }
- }
- else
- {
- document.getElementById(ID).style.display="block";
-
- if(--ShowClips==0)
- {
- if(document.getElementById('SideNotes').style.display!='none') Effect.Fade('SideNotes');
- }
- }
-
- }
-
- function AddEmotion(EmotionCode)
- {
- document.getElementById('Body').value=document.getElementById('Body').value+EmotionCode;
- }
-
- function ShowEmotions()
- {
- if(document.getElementById('ExtraEmotions').style.display=='none')
- {
- document.getElementById('ExtraEmotions').style.display='inline-block';
- }
- else
- {
- document.getElementById('ExtraEmotions').style.display='none';
- }
- }
-
- function OpenPart(ID)
- {
- document.getElementById(ID).style.display="block";
- document.getElementById(ID+"_btn").style.color='#888';
-
- if(!Hold)
- {
- //alert(ID);
- Element.scrollTo(ID);
- //window.location.href="#"+ID+"_Mark";
- }
- }
-
- function ClosePart(ID)
- {
- document.getElementById(ID).style.display="none";
- document.getElementById(ID+"_btn").style.color='#111';
- document.getElementById(ID+"_btn").disabled=false;
- }
-
- function ShowControls(ID)
- {
- document.getElementById(ID+"_Control").style.display="inline";
- }
-
- function HideControls(ID)
- {
- document.getElementById(ID+"_Control").style.display="none";
- }
-
- function AutoClip()
- {
- var Selection;
- if(Platform == "Macintosh")
- {
- Selection=new String(window.getSelection());
- }
- else
- {
- if(document.selection)
- {
- if(document.selection.type!='None')
- Selection = document.selection.createRange().text;
- }
- else
- {
- if(document.getSelection())
- Selection = document.getSelection();
- }
- }
-
- //Selection=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');
-
- if(Selection&&Selection.length>10)
- {
- document.getElementById('NewClip').value=Selection;
-
- var NewY=Event.pointerY(event)-400;
- if(NewY<0) NewY=0;
- document.getElementById('Clips').style.top=NewY+'px';
-
- if(document.getElementById('AddNewClip').style.display=='none') document.getElementById('AddNewClip').style.display='block';
- if(document.getElementById('SideNotes').style.display=='none') ShowSideNotes();
- }
- else
- {
- if(!ShowClips)
- {
- if(document.getElementById('SideNotes').style.display!='none') Effect.Fade('SideNotes');
- }
- }
- }
-
- function AdjustSideNotes()
- {
- setTimeout("document.getElementById('SideNotes').style.height=(document.getElementById('MainArea').offsetHeight-00)+'px';", 500);
- //setTimeout("alert(document.getElementById('MainArea').offsetHeight+' - '+document.getElementById('SideNotes').style.height);", 500);
- }
-
-
- function RefreshSideNotes()
- {
- //alert('refreshing');
- node=document.getElementById('SideNotes_Container');
- if(Platform=="Macintosh")
- {
-
- }
- else
- {
- OrigData=node.innerHTML;
- node.innerHTML="";
- node.innerHTML=OrigData;
- }
-
- var childrens = node.childNodes; //获取node的全部子节点
-
- for(var i=0;i<childrens.length;i++) {
- var tmp=childrens[i];
- if(tmp.tagName=='A')
- {
- eval("SideNote_"+tmp.id+".destroy();");
- eval("var SideNote_"+tmp.id+" = new Draggable('"+tmp.id+"', {revert:true, ghosting:true});");
- }
- }
- }
-
- //var CursorMoved=0;
- function CopyClip(ID)
- {
- return;
- if(CursorMoved==1) return false;
- //add codes to copy the selected text clip to the clip board
- //alert(CopyValue=document.getElementById(ID+"_Value").value);
- //alert(Event.clipboardData);
- CopyValue.execcommand("Copy");
- document.getElementById('Clips_Notifier').innerHTML='Copied to clip board.';
- Effect.BlindDown('Clips_Notifier', {duration:0.3});
- setTimeout("Effect.BlindUp('Clips_Notifier', {duration:0.3});", 2000);
- }
-
- var Marks=new Array();
- var CurrentMark;
- function MarkPosition(Mark, source)
- {
- var NewY=Event.pointerY(source)-70;
- if(NewY<0) NewY=0;
- Marks[Mark]=NewY+'px';
- //alert(Mark+' = '+NewY+'px');
- }
-
- function MovePanel(Mark)
- {
- //alert('Trying to move to '+Mark+'. CurrentMark is '+CurrentMark);
- if(Marks[Mark])
- document.getElementById('Clips').style.top=Marks[Mark];
- else
- document.getElementById('Clips').style.top='0px';
- }
-
- function ShowSideNotes()
- {
- AdjustSideNotes();
- if(document.getElementById('SideNotes').style.display=='none') Effect.Appear('SideNotes');
- }
-
- function ShowDeleteZone()
- {
- //document.getElementById('DeleteZone').style.display='block';
- Effect.Appear('DeleteZone', {duration:0.3});
- }
- function HideDeleteZone()
- {
- setTimeout("document.getElementById('DeleteZone').style.display='none';", 50);
- }
-
- function handleError() {
- //RefreshSideNotes();
- return true;
- }
-
- //window.onerror = handleError;
-
- function postClip(Note, ID)
- {
-
- ClipButton=document.getElementById('AddClip_Btn');
-
- ClipButton.disabled=1;
- ClipButton.value='Adding...';
-
- xajax_EditSideNote(document.getElementById('NewClip').value, 'AUTO');
-
- Effect.BlindUp('AddNewClip', {duration:0.3});
-
- document.getElementById('NewClip').value='';
- ClipButton.value=AddClipButtonCaption;
- ClipButton.disabled=false;
-
- }
-
- // notes part
- function AddNote()
- {
- ShowProgressBar('Notes');
- xajax_AddNote(PostID, document.getElementById('Input_NoteTitle').value, document.getElementById('Input_NoteBody').value);
- DisplayControls('NotesPart');
- //Effect.BlindUp('NotesPart', {duration:0.3});
- document.getElementById('Input_NoteBody').value='';
- document.getElementById('Input_NoteTitle').value='';
- DisplayContent('x_Notes_Patch');
- }
-
- function DisplayControls(ID)
- {
- //Effect.toggle(ID+"_Box", "Blind", {duration:0.3, queue:{scope:'myscope', position:'end'}});
- //return;
-
- if(document.getElementById(ID+"_Box").style.display!="none")
- {
- if(document.getElementById(ID+"_Alternative"))
- document.getElementById(ID+"_Alternative").style.display='block';
-
- document.getElementById(ID+"_Box").style.display="none";
- }
- else
- {
- if(document.getElementById(ID+"_Alternative"))
- document.getElementById(ID+"_Alternative").style.display='none';
-
- document.getElementById(ID+"_Box").style.display="block";
- }
- //Element.scrollTo(ID+"_Box");
- }
-
- function GalleryItem_DisplayControls(ID)
- {
- if(document.getElementById(ID+"_Box").style.display!="none")
- {
- document.getElementById(ID+"_Box").style.display="none";
- document.getElementById(ID+"_Description").style.display="block";
- }
- else
- {
- document.getElementById(ID+"_Box").style.display="block";
- document.getElementById(ID+"_Description").style.display="none";
- document.getElementById("Input_Image_Desc_"+ID).focus();
- }
- }
- function Start_BodyEdit()
- {
- if(document.getElementById('BodyPart_Box').style.display!='none') return;
-
- document.getElementById('BodyPart_Box').style.display='block';
- //DisplayControls('BodyPart');
- DisplayContent('x_PageBody');
- Element.scrollTo('Body');
- document.getElementById('Body').focus();
- if(AutoSave==1)
- {
- BodySaveInterval=setInterval("SaveBody();", 300*1000); //save the body every 300 secs
- Indicate(AutoSave_On);
- }
- else
- {
- Indicate(AutoSave_Off);
- BodySaveInterval=setInterval("Indicate("+Save_Prompt+");", 300000); //prompt to save the body every 300 secs
- }
- }
-
- function SaveBody(Method)
- {
- xajax_ModifyBody(PostID, document.getElementById('Body').value);
-
- if(Method==1) //user action
- {
- Stop_BodyEdit();
- }
-
- Indicate(BodySaved);
- }
-
- function DisplayHelp(ID, Quick)
- {
- if(!Quick)
- {
- Effect.toggle(ID+'_Help','BLIND', {duration:0.1});
- }
- else
- {
- if(document.getElementById(ID+"_Help").style.display!="none")
- {
- document.getElementById(ID+"_Help").style.display="none";
- }
- else
- {
- document.getElementById(ID+"_Help").style.display="inline-block";
- }
- }
- }
-
- function HideProgress()
- {
- document.getElementById('Page_Progress').style.display='none';
- }
-
-
- function Trash(ID)
- {
- if(confirm(DeleteConfirmText))
- {
- Effect.BlindUp('Segment_'+ID, {duration:0.4});
- xajax_RemoveItem(ID);
- }
- return;
- }
-
- function SwitchPage(ID)
- {
- Effect.Appear('Page_Switching_Indicator', {duration:0.3});
- xajax_SwitchThis(ID);
- }
-
-
- function hotKeys (event) {
-
- // Get details of the event dependent upon browser
- event = (event) ? event : ((window.event) ? event : null);
-
- // We have found the event.
- if (event) {
-
- // Hotkeys require that either the control key or the alt key is being held down
- if (event.ctrlKey || event.altKey || event.metaKey) {
-
- // Pick up the Unicode value of the character of the depressed key.
- var charCode = (event.charCode) ? event.charCode : ((event.which) ? event.which : event.keyCode);
-
- // Convert Unicode character to its lowercase ASCII equivalent
- var myChar = String.fromCharCode (charCode).toLowerCase();
-
- // Convert it back into uppercase if the shift key is being held down
- if (event.shiftKey) {myChar = myChar.toUpperCase();}
-
- // Now scan through the user-defined array to see if character has been defined.
- for (var i = 0; i < keyActions.length; i++) {
-
- // See if the next array element contains the Hotkey character
- if (keyActions[i].character == myChar) {
-
- // Yes - pick up the action from the table
- var action;
-
- // If the action is a hyperlink, create JavaScript instruction in an anonymous function
- if (keyActions[i].actionType.toLowerCase() == "link") {
- action = new Function ('location.href ="' + keyActions[i].param + '"');
- }
-
- // If the action is JavaScript, embed it in an anonymous function
- else if (keyActions[i].actionType.toLowerCase() == "code") {
- action = new Function (keyActions[i].param);
- }
-
- // Error - unrecognised action.
- else {
- alert ('Hotkey Function Error: Action should be "link" or "code"');
- break;
- }
-
- // At last perform the required action from within an anonymous function.
- action ();
-
- // Hotkey actioned - exit from the for loop.
- break;
- }
- }
- }
- }
- }
-
-
- function getMimeType()
- {
- var mimeType = "application/x-mplayer2"; //default
- var agt=navigator.userAgent.toLowerCase();
- var is_mac = (agt.indexOf("mac")!=-1);
- with (navigator)
- {
- if (mimeTypes && !(agt.indexOf("windows")!=-1 && agt.indexOf("windows 3.1")==-1))
- {
- //non-IE, no Windows
- var plugin = mimeTypes["audio/mpeg"].enabledPlugin;
- if (plugin) mimeType = "audio/mpeg"; //mac/Safari
- /* else
- {
- plugin = mimeTypes["audio/mpeg-url"].enabledPlugin;
- if (plugin) mimeType = "audio/mpeg-url" // non-IE 2nd favorite (Linux/FF)
- }
- */
- }//end no-Windows
- }//end with (navigator)
- return mimeType;
- }//end function getMimeType
-
- function setEmbed(ID, root){
- var element = document.getElementById(ID);
- element.innerHTML ='<embed src="'+root+'" autostart="0" loop="0" class="EmbedPlayer" type="'+getMimeType()+'"></embed>';
- }// end function setEmbed
-
- function ShowEmbed(ID, root)
- {
- var element = document.getElementById(ID);
- if(!element.innerHTML) setEmbed(ID, root);
- }
-
- function EditGroupTitle(GroupID, SaveOrNot, NewTitle)
- {
- if(document.getElementById('GroupBox_'+GroupID).style.display=='none')
- {
- document.getElementById('GroupBox_'+GroupID).style.display = 'block';
- document.getElementById('GroupTitle_'+GroupID).style.display = 'none';
- }
- else
- {
- document.getElementById('GroupBox_'+GroupID).style.display = 'none';
- document.getElementById('GroupTitle_'+GroupID).style.display = 'block';
- }
-
- if(SaveOrNot == 1)
- {
- document.getElementById('GroupTitle_'+GroupID).innerHTML = NewTitle;
- xajax_ModifyListGroupTitle(GroupID, NewTitle);
- }
- }
-
- function TrashListingGroup(GroupID)
- {
- if(confirm("Are you sure to delete this list?\nThis will delete all its items."))
- {
- //Effect.Fade("Group_"+GroupID, {duration:0.3});
- ShowProgressBar("Lists");
- xajax_TrashListing(PostID, GroupID);
- }
- }
-
- function TrashListItem(ID)
- {
- if(confirm(DeleteConfirmText))
- {
- Effect.Fade("List_"+ID, {duration:0.3});
- xajax_TrashListing(ID);
- }
- return;
- }
-
-
- function ToggleListEdit(ID)
- {
- if(document.getElementById('List_Display_'+ID).style.display=='none')
- {
- document.getElementById('List_Edit_'+ID).style.display = 'none';
- document.getElementById('List_Display_'+ID).style.display = 'block';
- }
- else
- {
- document.getElementById('List_Display_'+ID).style.display = 'none';
- document.getElementById('List_Edit_'+ID).style.display = 'block';
-
- document.getElementById('List_ItemName_Input_'+ID).focus();
- }
- }
-
- function SaveList(ID, ItemTitle, ItemDesc)
- {
- document.getElementById('List_Edit_'+ID).innerHTML = "<img src='/img/App_GUI/Misc/indicator_3.gif' width='16' height='16' border='0' style='margin:10px 0 10px 45px;' />";
-
- xajax_SaveListItem(PostID, ID, ItemTitle, ItemDesc);
- }
-
- function ShareMe()
- {
- //document.getElementById('SharePage').innerHTML = "<img src='/img/App_GUI/Misc/indicator_3.gif' width='16' height='16' border='0' style='float:right' />";
-
- //xajax_SharePage(PostID);
- //return;
-
-
- obj=document.getElementById('SubscriberIcon');
-
- if(obj.className=='btnShare')
- {
- obj.className = 'btnShare_Active';
- //document.getElementById('SharePage').className = 'SharedPage';
- document.getElementById('ShareStatus').style.display = 'block';
- document.getElementById('ShareStatus').innerHTML = "<img src='/img/App_GUI/Misc/indicator_3.gif' width='16' height='16' border='0' style='float:right' />";
- xajax_SharePage(PostID);
- }
- else
- {
- obj.className = 'btnShare';
- //document.getElementById('SharePage').className = '';
- document.getElementById('ShareStatus').style.display = 'none';
- xajax_SharePage(PostID);
- }
- }
-
- function AddNewContent(Type, ID)
- {
- var Switcher = '0';
- if(ID=='Top') Switcher = '1';
-
- document.getElementById('AddContent_'+ID).style.display = 'none';
-
- switch(Type)
- {
- case "Text":
- document.getElementById('AddNew_'+ID+'_Link').innerHTML = "+ Adding...";
- xajax_AddText(PostID, Switcher);
- break;
- case "List":
- document.getElementById('AddNew_'+ID+'_Link').innerHTML = "+ Adding...";
- xajax_AddList(PostID, Switcher);
- break;
- case "File":
- document.getElementById('FileUpload_Panel_'+ID).style.display='block';
- break;
- case "Link":
- document.getElementById('Links_Panel_'+ID).style.display='block';
- break;
- default:
- document.getElementById('AddNew_'+ID+'_Link').innerHTML = "+ Adding...";
- xajax_AddNewFile(PostID, Type, Switcher);
- break;
- }
- }
-
- function ToggleSegmentEdit(ID, SaveOrNot)
- {
- if(document.getElementById('Segment_'+ID+'_Edit').style.display=='none')
- {
- //display edit layout
-
- document.getElementById('Segment_'+ID+'_Edit').style.display = 'block';
-
- if(document.getElementById('Segment_'+ID+'_Display'))
- {
- document.getElementById('Segment_'+ID+'_Display').style.display = 'none';
- }
-
- if(document.getElementById('Segment_'+ID+'_EditIcon'))
- document.getElementById('Segment_'+ID+'_EditIcon').style.visibility = 'hidden';
-
- }
- else
- {
- //hide edit layout
-
- document.getElementById('Segment_'+ID+'_Edit').style.display = 'none';
-
- if(document.getElementById('Segment_'+ID+'_Display'))
- document.getElementById('Segment_'+ID+'_Display').style.display = 'block';
-
- if(SaveOrNot)
- {
- if(document.getElementById('Segment_'+ID+'_Display'))
- {
- document.getElementById('Segment_'+ID+'_Display').innerHTML = "<img src='/img/App_GUI/Misc/indicator_3.gif' width='16' height='16' /><br /> ";
- }
- else
- {
- document.getElementById('Segment_'+ID+'_EditIcon').style.visibility = 'visible';
- document.getElementById('Segment_'+ID+'_EditIcon').innerHTML = 'Adding...';
- }
-
- xajax_SaveChanges(xajax.getFormValues('Segment_'+ID+'_Edit'));
- }
- //alert('showing');
- if(document.getElementById('Segment_'+ID+'_EditIcon'))
- document.getElementById('Segment_'+ID+'_EditIcon').style.visibility = '';
- }
- }
-
- function SaveList(DataAddress, ItemID, ListName, ListDesc)
- {
- document.getElementById('List_Edit_'+DataAddress+"_"+ItemID).innerHTML = "<img src='/img/App_GUI/Misc/indicator_3.gif' width='16' />";
- xajax_SaveListItem(DataAddress, ItemID, ListName, ListDesc);
- }
-
- function ToggleAddNew(ID)
- {
- if(document.getElementById('AddContent_'+ID).style.display=='none')
- {
- document.getElementById('AddContent_'+ID).style.display='block';
- }
- else
- {
- document.getElementById('AddContent_'+ID).style.display='none';
- }
-
- if(ID=="Bottom")
- {
- //if(parent.getElementById('MainWindow')) parent.getElementById('MainWindow').scrollTop+=9999;
- window.scrollBy(0, 9999);
- }
- }
-
- function PreviewImage(x)
- {
- var y = document.getElementById("PreviewImage_Zone");
- if(!x || !y) return;
- var patn = /\.jpg$|\.jpeg$|\.gif$/i;
- if(patn.test(x))
- {
- y.src = "file://localhost/" + x;
- }
- else
- {
- y.src = "/img/vClipper/nopreview.jpg";
- }
- }
-
- function PreviewImage2(x)
- {
- var y = document.getElementById("PreviewImage2_Zone");
- if(!x || !y) return;
- var patn = /\.jpg$|\.jpeg$|\.gif$/i;
- if(patn.test(x))
- {
- y.src = "file://localhost/" + x;
- }
- else
- {
- y.src = "/img/vClipper/nopreview.jpg";
- }
- }
-
- function AddLink(ID)
- {
-
- xajax_AddLink(PostID, document.getElementById('Input_PageLink_'+ID).value);
-
- var elSel = document.getElementById('Input_PageLink_'+ID);
- var i;
- for (i = elSel.length - 1; i>=0; i--)
- {
- if (elSel.options[i].selected)
- {
- elSel.remove(i);
- }
- }
-
- document.getElementById('Links_Panel_'+ID).style.display = 'none';
- }
-
- function HoverSegment(ID, Type)
- {
- if(Browser=='Explorer')
- document.getElementById('Segment_'+ID).className = 'Segment_'+Type+' Segment_'+Type+'_hover';
- document.getElementById('SegmentControl_'+ID).style.display='block';
- }
-
- function LeaveSegment(ID, Type)
- {
- if(Browser=='Explorer')
- document.getElementById('Segment_'+ID).className = 'Segment_'+Type;
-
- document.getElementById('SegmentControl_'+ID).style.display='none';
- }
-
- function OpenFile(path)
- {
- window.status = 'file:///'+path;
- setTimeout("window.status='';", 200);
- }
- var Duplicated=0;
- function Duplicate(obj)
- {
- if(Duplicated==1) return;
- obj.innerHTML = "Duplicating...";
- Duplicated = 1;
-
- xajax_DuplicatePage(PostID);
- }